home *** CD-ROM | disk | FTP | other *** search
/ Scene 96 / Scene 96 International Edition (Zyklop Software) (Disc 2) (1997).iso / misc / coding / cp2dekit / h / gmdinst.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-12-29  |  1.4 KB  |  60 lines

  1. //***************************************************************************
  2. //
  3. // this file is (c) '94-'96 Niklas Beisert
  4. //
  5. // this file is part of the cubic player development kit.
  6. // you may only use/modify/spread this file under the terms stated
  7. // in the cubic player development kit accompanying documentation.
  8. //
  9. //***************************************************************************
  10.  
  11. #ifndef __STDINST_H
  12. #define __STDINST_H
  13.  
  14. enum
  15. {
  16.   mpEnvLoop=1, mpEnvBiDi=2, mpEnvSLoop=4, mpEnvSBiDi=8,
  17. };
  18.  
  19. struct envelope
  20. {
  21.   unsigned char *env;
  22.   unsigned short len;
  23.   unsigned short loops, loope;
  24.   unsigned short sloops, sloope;
  25.   unsigned char type;
  26.   unsigned char speed;
  27. };
  28.  
  29. struct sample
  30. {
  31.   char name[32];
  32.   unsigned short handle;
  33.   signed short normnote;
  34.   signed short stdvol;
  35.   signed short stdpan;
  36.   unsigned short opt;
  37. #define MP_OFFSETDIV2 1
  38.   unsigned short volfade;
  39.   unsigned char pchint;
  40.   unsigned short volenv;
  41.   unsigned short panenv;
  42.   unsigned short pchenv;
  43.   unsigned char vibspeed;
  44.   unsigned char vibtype;
  45.   unsigned short vibrate;
  46.   unsigned short vibdepth;
  47.   unsigned short vibsweep;
  48. };
  49.  
  50. struct instrument
  51. {
  52.   char name[32];
  53.   unsigned short samples[128];
  54. };
  55.  
  56. void gmdInstSetup(const instrument *ins, int nins, const sample *smp, int nsmp, const sampleinfo *smpi, int nsmpi, int type, void (*MarkyBoy)(char *, char *));
  57. void gmdInstClear();
  58.  
  59. #endif
  60.